package com.cloud.order.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 登录日志表(LoginLog) 实体类
*
* @author zhangxun
* @since 2020-08-24
*/
@Data
@TableName(value = "login_log")
public class LoginLog implements Serializable {
    private static final long serialVersionUID=1L;
    /*** id*/
    @TableId(type = IdType.AUTO)
    private Long id;

    /*** 用户名*/
    @TableField("username")
    private String username;

    /*** 登录时间*/
    @TableField("login_time")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime loginTime;

    /*** 登录地点*/
    @TableField("location")
    private String location;

    /*** IP地址*/
    @TableField("ip")
    private String ip;

    /*** 操作系统*/
    @TableField("system")
    private String system;

    /*** 浏览器*/
    @TableField("browser")
    private String browser;

}